package com.huluobo.a2205monthdemo.adapter

import android.graphics.Color
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2205monthdemo.R
import com.huluobo.base.bean.ColorBeanItem

/**
 *  Created by LC on 2024/10/9.
 */
class ColorsAdapter : BaseQuickAdapter<ColorBeanItem, BaseViewHolder>(R.layout.item_colors) {
    override fun convert(helper: BaseViewHolder, item: ColorBeanItem) {
        helper.setBackgroundColor(R.id.item_color_iv, Color.parseColor(item.colorValue))
    }
}